package com.ssm.service;

import com.ssm.pojo.Customer;
import com.ssm.pojo.Enter;
import com.ssm.pojo.Fee;
import com.ssm.pojo.House;

import java.util.List;
import java.util.Map;

public interface CustomerService {
    //查询所有客户信息
    List<Customer> getAllCustomers();

    //通过客户姓名查询客户
    Customer getCustomerByName(String name);

    Customer queryCustomerByCard(String card);

    //查询所有房间信息
    List<House> getAllHouses();

    //录入客户信息
    int addCustomer(Customer customer);

    //获取房间信息
    House getHouse(String name);

    //添加账单信息
    Map<String, Object> addFee(Fee fee);

    //订房  预订房间
    String bookRoom(Customer customer, String houseName, Enter enter, Fee fee);

    //退订房间
    int checkOut(int houseId);

    int update(Customer customer);

    int delete(String card);
}
